package com.studentEasyui.service.impl;

import java.util.List;

import com.studentEasyui.dao.StudentDao;
import com.studentEasyui.dao.impl.StudentDaoImpl;
import com.studentEasyui.entity.StudentEntity;
import com.studentEasyui.service.StudentService;

public class StudentServcieImpl implements StudentService {
private StudentDao studentDao=new StudentDaoImpl();
	@Override
	public void addStudent(StudentEntity idNumber) {
		studentDao.addStudent(idNumber);
		
	}

	@Override
	public int deleteStudent(Long id) {
		return studentDao.deleteStudent(id);
	}

	@Override
	public int updateStudent(StudentEntity idNumber) {
		return studentDao.updateStudent(idNumber);
		
	}

	@Override
	public List<StudentEntity> listAll() {
		// TODO Auto-generated method stub
		return studentDao.listAll();
	}

//	@Override
//	public StudentEntity getById(StudentEntity id) {
//		// TODO Auto-generated method stub
//		return studentDao.getById(id);
//	}

	@Override
	public int login(String name, String idNumber) {
		// TODO Auto-generated method stub
		return studentDao.login(name, idNumber);
	}

@Override
public StudentEntity getById(StudentEntity id) {
	// TODO Auto-generated method stub
	return studentDao.getById(id);
}



}
